<?php 
include("config.php");
if(isset($_SESSION['logat']) && $_SESSION['logat'] == 1) { header("location: logged.php"); }
?>
<?php include "funct.php";
?>
<!DOCTYPE html>
<html lang="en">
	<head>
		<title><? echo $lang['name_site'] . ' - ' . $lang["index"]; ?></title>
		<link href="stil.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="./bibleoteci/jquery-1.7.1.min.js"></script>
		<script type="text/javascript" src="./bibleoteci/jquery-ui-1.8.17.custom.min.js"></script>
		<script type="text/javascript" src="funct.js"></script>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
		<meta name="description" content="Battles" /> 
		<meta name="keywords" content="game, battles" />
		<link rel="shortcut icon" href="" type="image/x-icon" />
		<style>
			body{
				color: #fff;
				font-family: Arial;
			}
		</style>
	</head>
	<body class="q_body">
		<img src="imagini/bg_login.png" style="position: fixed; top: 0; left: 0; width:100%; height:100%"/>
		<div class="invelis_log">
			<img src="imagini/box_login.png" style="width: 600pt; height: 270pt; margin:0 auto;" />
			<img src="imagini/dissbattlev_logo.png" style="position: absolute; left:10pt; top: 10pt; width: 150pt; height: 80pt;" />
			<font class="mesaj" id="mesaj1">
			<?
			if (isset($_SESSION["mesaj"]))
				if (strlen($_SESSION["mesaj"]) > 0)
					echo clean($_SESSION["mesaj"]);
			$_SESSION["mesaj"]="";
			?>
			<script type="text/javascript">efect_mesaj("mesaj1");</script>
			</font>
			<div id="login">
				<form action="login.php" method="post">
					<div>
						Username: 
						<div class="input_div" style="margin-left: 10pt;">
							<img src="imagini/name.png" />
							<input type="text" name="nume" id="nume" onkeyup="javascript:verifica('nume');" onkeydown="javascript:verifica('nume');" onchange="javascript:verifica('nume');" class="input" placeholder="Tell ya name..." />
						</div>
						<img id="nume1" src="imagini/error.png" style="margin-left: 5pt;" />
					</div>
					<div style="margin-top: 5pt;">
						Password: 
						<div class="input_div" style="margin-left: 10pt;"><img src="imagini/password.png" />
							<input type="password" name="parola" id="parola" class="input" placeholder="N ya password..." />
						</div>
						<span style="width:23px; margin-left:20pt;"></span>
					</div>
					<input type="submit" class="buton" style="position:relative; margin-top:20pt; margin-left: 140pt;" value="Login" />
				</form>
			</div>
			<div class="register">
				<div>
					<font style="color: rgb(250,250,250); font-size: 16pt;">Sign up?</font><br/>
					<font style="color: rgb(210,70,70); font-size: 10pt; font-style: italic;">Join now on DissBattle!</font><br/>
					<article style="color: rgb(250,250,250); font-size: 10pt; top: 20pt; position: relative; text-align: left; width: 160pt; margin-left: auto; margin-right: auto;">
						<? 
							echo $lang["index_reg"];
						?>
					</article>
				</div>
				<a href="register_i.php" style="position: absolute; top:170pt; left: 60pt;">
					<input type="button" class="buton" value="Register" />
				</a>
			</div>
		</div>
	</body>
</html>